#include "udp_sever.hpp"
#include <memory>
#include <unistd.h>
#include <cstdlib>
int main(int argc,char* argv[])
{
    if(argc != 2)
    {
        cout<<"应该输入2个参数 : "<<argv[0]<<" ip port "<<endl;
        exit(1);
    }
    //string ip = argv[1];
    uint16_t port = atoi(argv[1]);
    unique_ptr<Udp_serve> svr(new Udp_serve(port));
    svr->sever_init();
    svr->start();
    return 0;
}